<%--
  Created by IntelliJ IDEA.
  User: 001
  Date: 2017/6/13
  Time: 21:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title></title>
</head>
<body>

<%--此时没有写action，直接提交会提交给/add--%>
<%--默认把值传到user--%>
  <form action="/user/add" method="post" modelAttribute="userCenter">
    username:<input path="username" name="username"/><br>
    password:<input path="password" name="password"/><br>
    sex:<input path="sex" name="sex"/><br>
    age:<input path="age" name="age" /><br>
    sdept:<input path="sdept" name="sdept"/><br>
    <input type="submit" value="add">
  </form>
</body>
</html>
